//package com.tpadsz.ssm.dubbo;
//
//import com.isoft.after.api.DemoService;
//import org.apache.dubbo.config.annotation.Reference;
//import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
//import org.springframework.context.annotation.AnnotationConfigApplicationContext;
//import org.springframework.context.annotation.PropertySource;
//
//import javax.annotation.PostConstruct;
//import java.io.IOException;
//
//@EnableDubbo
//@PropertySource(value = "classpath:/consumer-config.properties")
//public class DemoServiceConsumerBootstrap {
//
//    @Reference(version = "${dubbo.provider.version}")
//    private DemoService demoService;
//
//    @PostConstruct
//    public void init() {
//        for (int i = 0; i < 10; i++) {
//            System.out.println(demoService.sayName("jack.chen（after）"));
//        }
//    }
//
//    public static void main(String[] args) throws IOException {
//        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
//        context.register(DemoServiceConsumerBootstrap.class);
//        context.refresh();
//        context.close();
//    }
//}
